home *** CD-ROM | disk | FTP | other *** search
Wrap
VVVVLLLLDDDDMMMMBBBBUUUUFFFFFFFFEEEERRRRGGGGEEEETTTTVVVVAAAALLLLIIIIDDDD((((3333ddddmmmm)))) VVVVLLLLDDDDMMMMBBBBUUUUFFFFFFFFEEEERRRRGGGGEEEETTTTVVVVAAAALLLLIIIIDDDD((((3333ddddmmmm)))) NNNNAAAAMMMMEEEE vlDMBufferGetValid, vlDMBufferPutValid, vlDMBufferGetVideoInfo, vlDMBufferSetVideoInfo - VL DMbuffer management routines SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////vvvvllll....hhhh>>>> iiiinnnntttt vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrGGGGeeeettttVVVVaaaalllliiiidddd((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr vvvvllllSSSSeeeerrrrvvvveeeerrrr,,,, VVVVLLLLPPPPaaaatttthhhh ppppaaaatttthhhh,,,, VVVVLLLLNNNNooooddddeeee nnnnooooddddeeee,,,, DDDDMMMMbbbbuuuuffffffffeeeerrrr**** ddddmmmmbbbbuuuuffffffffeeeerrrr))));;;; iiiinnnntttt vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrPPPPuuuuttttVVVVaaaalllliiiidddd((((VVVVLLLLSSSSeeeerrrrvvvveeeerrrr vvvvllllSSSSeeeerrrrvvvveeeerrrr,,,, VVVVLLLLPPPPaaaatttthhhh ppppaaaatttthhhh,,,, VVVVLLLLNNNNooooddddeeee nnnnooooddddeeee,,,, DDDDMMMMbbbbuuuuffffffffeeeerrrr ddddmmmmbbbbuuuuffffffffeeeerrrr))));;;; ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ddddmmmmccccoooommmmmmmmoooonnnn....hhhh>>>> iiiinnnntttt vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrGGGGeeeettttVVVViiiiddddeeeeooooIIIInnnnffffoooo((((DDDDMMMMbbbbuuuuffffffffeeeerrrr ddddmmmmbbbbuuuuffffffffeeeerrrr,,,, DDDDMMMMBBBBuuuuffffffffeeeerrrrVVVViiiiddddeeeeooooIIIInnnnffffoooo**** vvvviiiiddddiiiinnnnffffoooo)))) iiiinnnntttt vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrSSSSeeeettttVVVViiiiddddeeeeooooIIIInnnnffffoooo((((DDDDMMMMbbbbuuuuffffffffeeeerrrr ddddmmmmbbbbuuuuffffffffeeeerrrr,,,, DDDDMMMMBBBBuuuuffffffffeeeerrrrVVVViiiiddddeeeeooooIIIInnnnffffoooo**** vvvviiiiddddiiiinnnnffffoooo)))) DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrGGGGeeeettttVVVVaaaalllliiiidddd returns a valid _D_M_b_u_f_f_e_r containing video data from the specified node and path. This call is used in video capture-type applications where a path is set up to route image data from a source video device node to drain memory node. The buffer that is returned contains one video image, either a field or a frame. ddddmmmmBBBBuuuuffffffffeeeerrrrMMMMaaaappppDDDDaaaattttaaaa can be used to get a pointer to the image in the buffer. The contents of the buffer should not be modified. vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrPPPPuuuuttttVVVVaaaalllliiiidddd takes a valid _D_M_b_u_f_f_e_r and sends it to the path via the specified node. This call is used in video playback-type applications where a path is set up to route image data from a source memory node to a drain video device node. After calling vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrPPPPuuuuttttVVVVaaaalllliiiidddd, the video library and the call both have references to the buffer. The contents of the buffer should not be changed by the caller. vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrGGGGeeeettttVVVViiiiddddeeeeooooIIIInnnnffffoooo copies the contents of the DMBufferVideoInfo structure associated with a DMBuffer to the address of a DMBufferVideoInfo structure specified by the user. vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrSSSSeeeettttVVVViiiiddddeeeeooooIIIInnnnffffoooo copies the contents of a DMBufferVideoInfo structure pointed to by the specified address to the DMBufferVideoInfo structure associated with a DMBuffer. The DMBufferVideoInfo structure is currently defined as: typedef struct DMBufferVideoInfo_s { DDDDMMMMVVVVIIIITTTTCCCCccccooooddddeeee vvvviiiittttcccc[[[[2222]]]];;;; uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt vvvvaaaalllliiiiddddiiiinnnnffffoooo;;;; uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt ssssddddttttiiii;;;; cccchhhhaaaarrrr ppppaaaadddd[[[[DDDDMMMMBBBBUUUUFFFF____VVVVIIIIDDDDIIIINNNNFFFFOOOO____PPPPAAAADDDD]]]];;;; }}}} DDDDMMMMBBBBuuuuffffffffeeeerrrrVVVViiiiddddeeeeooooIIIInnnnffffoooo;;;; #define DMBUF_VIDINFO_SIZE 96 /* size in bytes of DMBufferVideoInfo */ PPPPaaaaggggeeee 1111 VVVVLLLLDDDDMMMMBBBBUUUUFFFFFFFFEEEERRRRGGGGEEEETTTTVVVVAAAALLLLIIIIDDDD((((3333ddddmmmm)))) VVVVLLLLDDDDMMMMBBBBUUUUFFFFFFFFEEEERRRRGGGGEEEETTTTVVVVAAAALLLLIIIIDDDD((((3333ddddmmmm)))) #define DMBUF_VIDINFO_PAD ((DMBUF_VIDINFO_SIZE) - 2*sizeof(DMVITCcode) - 2*sizeof(unsigned int)) #define DMBUF_VIDINFO_VALID_VITC1 0x1 #define DMBUF_VIDINFO_VALID_VITC2 0x2 #define DMBUF_VIDINFO_VALID_SDTI 0x4 and is included in sys/dmcommon.h header file. MMMMAAAACCCCHHHHIIIINNNNEEEE DDDDEEEEPPPPEEEENNNNDDDDEEEENNNNCCCCIIIIEEEESSSS When using ggggllllXXXXAAAAssssssssoooocccciiiiaaaatttteeeeDDDDMMMMPPPPbbbbuuuuffffffffeeeerrrrSSSSGGGGIIIIXXXX to pass DMbuffers between video and OpenGL on the OOOO2222 platform, VVVVLLLL____LLLLAAAAYYYYOOOOUUUUTTTT should be set to VVVVLLLL____LLLLAAAAYYYYOOOOUUUUTTTT____GGGGRRRRAAAAPPPPHHHHIIIICCCCSSSS. This way, the video libary will expect DMbuffers in the format used internally by OpenGL. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE Upon successful completion, vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrGGGGeeeettttVVVVaaaalllliiiidddd returns VLSuccess and _d_m_b_u_f_f_e_r points to a valid DMbuffer referencing video data. Otherwise, -1 is returned, _d_m_b_u_f_f_e_r is set to NULL and _v_l_E_r_r_n_o is set indicating the error. Note that _v_l_E_r_r_n_o set to _V_L_A_g_a_i_n does not indicate an error but rather that there was no video data at the specified node when _v_l_D_M_B_u_f_f_e_r_G_e_t_V_a_l_i_d was called. Upon success completion, vvvvllllDDDDMMMMBBBBuuuuffffffffeeeerrrrPPPPuuuuttttVVVVaaaalllliiiidddd returns _V_L_S_u_c_c_e_s_s, otherwise a value of -1 is returned and _v_l_E_r_r_n_o is set indicating the error. SSSSEEEEEEEE AAAALLLLSSSSOOOO vlDMPoolRegister(3dm), vlDMPoolDeregister(3dm), dmBufferAllocate(3dm), dmBufferFree(3dm), dmBufferMapData(3dm) PPPPaaaaggggeeee 2222